package xyz.hzxiao.facade;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import xyz.hzxiao.entity.order.DemoOrderEntity;
import xyz.hzxiao.result.JsonResult;

import java.util.List;

/**
 * 订单门面
 *
 * @author ：FuXx
 * @className : xyz.hzxiao.facade.OrderFacade
 * @since ：2023/12/5
 */
public interface OrderFacade {

    @GetMapping("/queryOrdersByUserId")
    JsonResult<List<DemoOrderEntity>> orderList(@RequestParam("userId") Integer userId);

}
